<?php
declare (strict_types = 1);

namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        "admin_name" => "require",
        "role_id" => "require",
        "mobile" => "require",
        "password" => "require",
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [
        'admin_name.require' => '请输入登录名',
        'role_id.require' => '请选择角色',
        'mobile.require' => '请输入手机号',
        'password.require' => '请填写登录密码',

    ];
}
